import service from '@/utils/request'

// @Tags MasterBOMNote
// @Summary 创建MasterBOM-BOM备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMNote true "创建MasterBOM-BOM备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBOMNote/createMasterBOMNote [post]
export const createMasterBOMNote = (data) => {
  return service({
    url: '/masterBOMNote/createMasterBOMNote',
    method: 'post',
    data
  })
}

// @Tags MasterBOMNote
// @Summary 删除MasterBOM-BOM备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMNote true "删除MasterBOM-BOM备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMNote/deleteMasterBOMNote [delete]
export const deleteMasterBOMNote = (params) => {
  return service({
    url: '/masterBOMNote/deleteMasterBOMNote',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMNote
// @Summary 批量删除MasterBOM-BOM备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MasterBOM-BOM备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBOMNote/deleteMasterBOMNote [delete]
export const deleteMasterBOMNoteByIds = (params) => {
  return service({
    url: '/masterBOMNote/deleteMasterBOMNoteByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBOMNote
// @Summary 更新MasterBOM-BOM备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBOMNote true "更新MasterBOM-BOM备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBOMNote/updateMasterBOMNote [put]
export const updateMasterBOMNote = (data) => {
  return service({
    url: '/masterBOMNote/updateMasterBOMNote',
    method: 'put',
    data
  })
}

// @Tags MasterBOMNote
// @Summary 用id查询MasterBOM-BOM备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBOMNote true "用id查询MasterBOM-BOM备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBOMNote/findMasterBOMNote [get]
export const findMasterBOMNote = (params) => {
  return service({
    url: '/masterBOMNote/findMasterBOMNote',
    method: 'get',
    params
  })
}

// @Tags MasterBOMNote
// @Summary 分页获取MasterBOM-BOM备注列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MasterBOM-BOM备注列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBOMNote/getMasterBOMNoteList [get]
export const getMasterBOMNoteList = (params) => {
  return service({
    url: '/masterBOMNote/getMasterBOMNoteList',
    method: 'get',
    params
  })
}
